home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / AppleScript / Development Tools / Sample Code / 7Edit / C Sources / SVEditFile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-25  |  1.8 KB  |  79 lines  |  [TEXT/MPS ]

  1. /*
  2.     SVEditFile.h
  3.     
  4.     Version 3.0d9
  5.     
  6.     Copyright © SRL Data 1992, 1993
  7.     
  8.     All rights reserved
  9.     
  10.     Produced by : SRL Data
  11.     Originally Developed for UK.DTS
  12. */
  13.  
  14. /*
  15.                                          
  16.     Known problems-:
  17.         
  18.     System 7.0 specifics-:
  19.         Saving a file using a temporary filename generated using a random file name.
  20.         Note the use of PBExchangeFiles to make sure that the FileIDs of the new file is the
  21.         same as the old one.
  22. */
  23. /*
  24.     Changes for 3.0d2 :
  25.         19-Feb-92    : NH : Fix open of doc with no other docs open and has
  26.                          published sections.
  27.       18-Mar-92    :    NH : AssocAllSections called after SaveAs
  28.         27-Mar-92    : NH : Arrow Cursor on alerts
  29.                      Comment file some more
  30.       28-Mar-92 : NH : GetFileNameToSaveAs - return FALSE if cancelled (was TRUE!)
  31.         
  32.     Changes for 3.0d4 :
  33.     
  34.         14-Jul-92 : NH : GetFileNameToSaveAs and others return errors when fail
  35.         
  36.     Changes for 3.0d5 :
  37.     
  38.         10-Aug-92 : NH : Save Options for Quit added
  39.         
  40. */
  41.  
  42. #ifndef __SVEDITFILE__
  43. #define __SVEDITFILE__
  44.  
  45. #include <Memory.h>
  46. #include <Quickdraw.h>
  47. #include <Traps.h>
  48. #include <Files.h>
  49. #include <Packages.h>
  50. #include <Editions.h>
  51. #include <AppleEvents.h>
  52. #include <Printing.h>
  53.  
  54. #include "SVEditGlobals.h"
  55. #include "SVEditUtils.h"
  56. #include "SVEditWindow.h"
  57. #include "SVEditions.h"
  58.                  
  59. pascal void DoQuit(DescType saveOpt);
  60.  
  61. pascal OSErr DoClose(WindowPtr aWindow,Boolean canInteract,DescType dialogAnswer);
  62.  
  63. pascal OSErr GetFileNameToSaveAs(DPtr theDocument);
  64.  
  65. pascal OSErr DoSave(DPtr theDocument, FSSpec theFSSpec);
  66.  
  67. pascal OSErr GetFileContents(FSSpec theFSSpec, DPtr theDocument);
  68.  
  69. pascal void FileError(Str255 s, Str255 f);
  70.  
  71. pascal OSErr SaveUsingTemp(DPtr theDocument);
  72.  
  73. pascal OSErr OpenOld(FSSpec aFSSpec);
  74.  
  75. pascal OSErr OpenUsingAlias(AliasHandle theAliasH);
  76.  
  77. pascal OSErr GetFile(FSSpec *theFSSpec);
  78.  
  79. #endif